var mongoose = require('../utils/dbUtils')
var Schema = mongoose.Schema;
//student的userSchema
let stduentSchema = new Schema({
    "name":String,
    "age":Number,
    "gender":String,
    "photo":String,
    "classid":{
        type:mongoose.Schema.Types.ObjectId,
        ref:"classModel"
    }
});
//创建user的模型
let studentModel =mongoose.model("studentModel",stduentSchema,"students");
//暴露接口
module.exports=studentModel;
